<html>
<head>
	<title>Upload working sample</title>
</head>
<body>


<div id="sample">
<script type="text/javascript" src="nicEdit.js"></script>
<script type="text/javascript">

bkLib.onDomLoaded(function() {
	new nicEditor({
		buttonList : ['bold','italic','underline','upload'],
		iconsPath:'nicEditorIcons.gif',
		uploadURI : 'nicUpload.php', 
	}).panelInstance('textareaId');
});

</script>

<h4>Editor</h4>
<textarea name="area1" cols="40" id="textareaId"></textarea>

</div>

</body>
</html>